// 大的数值变成亿，万

import { Pipe ,PipeTransform } from '@angular/core';

@Pipe({name:'highlight'})

export class Highlight implements PipeTransform{
  transform(text: string, search:string): string {

    return search ? text.replace(new RegExp(search, 'i'), `<span class="highlight">${search}</span>`) : text;
  }
}
